﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace Himp.Platform
{
    /// <summary>
    /// 数据字典
    /// </summary>
    public class DataDict : AuditedAggregateRoot<Guid>, IMultiTenant
    {
        /// <summary>
        /// 数据字典代码
        /// </summary>
        public string DataDictCode { get; set; }

        /// <summary>
        /// 数据字典名称
        /// </summary>
        public string DataDictName { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int Srtno { get; set; }

        /// <summary>
        /// 分类编码
        /// </summary>
        public string CatgeCodg { get; set; }

        /// <summary>
        /// 版本号
        /// </summary>
        public int Ver { get; set; }

        /// <summary>
        /// 拼音助记码
        /// </summary>
        public string Pinyincode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool ValiFlag { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

        public DataDict(string dataDictCode,string dataDictName, string catgeCodg
            ,int srtno)
        {
            DataDictCode = dataDictCode;
            DataDictName = dataDictName;
            CatgeCodg = catgeCodg;
            Srtno = srtno;
            Ver = 0;
            Pinyincode = "";
        }
    }
}
